<?php

namespace App\Http\Controllers\Common;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Classes\Help;
use App\Http\Controllers\Controller;

class HelpController extends Controller
{
    public function getAboutUs()
    {
        try
        {
            $help = new Help();

            $help = $help->getAboutUs();

            return $this->response(1, '获取成功', $help);
        }
        catch (\Exception $exception)
        {
            return $this->exceptionResponse($exception, __FUNCTION__);
        }
    }

    public function getCustomerService()
    {
        try
        {
            $help = new Help();

            $help = $help->getCustomerService();

            return $this->response(1, '获取成功', $help);
        }
        catch (\Exception $exception)
        {
            return $this->exceptionResponse($exception, __FUNCTION__);
        }
    }

    public function getHelp()
    {
        try
        {
            $help = new Help();

            $help = $help->getHelp();

            return $this->response(1, '获取成功', $help);
        }
        catch (\Exception $exception)
        {
            return $this->exceptionResponse($exception, __FUNCTION__);
        }
    }
}
